import {Component} from "react";
import {BrowserRouter,Switch,Route,Redirect} from "react-router-dom";
import Index from "@/pages/Index/Index";
export default class Router extends Component{
    render=()=>(
        <BrowserRouter>
            <Switch>
            <Route exact path="/index" component={Index} />
            <Redirect exact from="/" to="/index" />
            </Switch>
        </BrowserRouter>
    )
}